package org.pada.domain.cmd;

import org.pada.client.dto.Cmd;
import org.pada.client.dto.Resp;

/**
 * @author shen.peng
 * @since 2024/10/25
 */
@FunctionalInterface
public interface ICmdHandler<C extends Cmd<R>, R extends Resp> {

    /**
     * cmd handler
     * @param cmd
     */
    R exec(C cmd);
}
